import request from '@/api/request'

export function newslist(params) {
  return request({
    url: '/admin/xy/news/list',
    method: 'get',
    params
  })
}
export function delNew(params) {
  return request({
    url: '/admin/xy/news/del',
    method: 'get',
    params
  })
}
export function save(params) {
  return request({
    url: '/admin/xy/news/save',
    method: 'post',
    params
  })
}
export function newsdetail(params) {
  return request({
    url: '/admin/xy/news/detail',
    method: 'get',
    params
  })
}
export function newsupdate(params) {
  return request({
    url: '/admin/xy/news/update',
    method: 'post',
    params
  })
}